package ru.pb.game.network.engine.client.packets.sendable;

import ru.pb.game.network.engine.client.packets.GameServerToClientPacket;
import ru.pb.game.objects.model.room.Room;

/**
 * Запись настроект разрешонного оружия.
 * 
 * @author Felixx
 */
public class opcode_3591_ACK extends GameServerToClientPacket
{
	private Room _room;

	public opcode_3591_ACK(Room r)
	{
		_room = r;
	}

	@Override
	public void writeImpl()
	{
		writeH(3592);

		writeD(); // Обибка?
		writeS(_room.name, 22);
		writeC(0);
		writeC(_room.map_id);
		writeC(0);
		writeC(0);
		writeC(0);
		writeC(0);
		writeC(0);
		writeC(0);
		writeC(0);
		writeC(_room.allweapons);
		writeC(0);
		writeC(0);
		writeC(_room._aiCount);
		writeC(_room._aiLevel);

		/*
		 * _name = readS(22);
		 * _unk3 = readC();
		 * _mapId = readC();
		 * _unk4 = readC();
		 * _unk5 = readC();
		 * _unk6 = readC();
		 * _unk7 = readC();
		 * _unk8 = readC();
		 * _unk9 = readC();
		 * _unk10 = readC();
		 * _allowweapons = readC();
		 * _unk11 = readC();
		 * _unk12 = readC();
		 * _unk13 = readC();
		 * _unk14 = readC();
		 */
	}
}